using System;
using System.Collections.Generic;
using System.ComponentModel;

namespace OBUCare.Core.Models
{
    public partial class View_TRANSFER_BILL_Info
    {
        [DisplayName("编号")]
        public long ID { get; set; }
        [DisplayName("交接单号")]
        public string TRANSFER_BILL_NO { get; set; }
        [DisplayName("交接人")]
        public string OPERATOR_NO { get; set; }
        [DisplayName("交接人")]
        public string Deliver_OPERATOR { get; set; }
        [DisplayName("交接时间")]
        public Nullable<System.DateTime> TRANSFER_DATE { get; set; }
        [DisplayName("配送人")]
        public string SEND_PEOPLE { get; set; }
        [DisplayName("配送时间")]
        public Nullable<System.DateTime> SEND_DATE { get; set; }
        [DisplayName("接收人")]
        public string RECEIVE_OPERATOR_NO { get; set; }
        [DisplayName("接收人")]
        public string RECEIVE_OPERATOR { get; set; }
        [DisplayName("确认时间")]
        public Nullable<System.DateTime> CONFIRM_DATE { get; set; }
        [DisplayName("交接方向")]
        public Nullable<int> TRANSFER_TYPE { get; set; }
        [DisplayName("交接方向")]
        public string TRANSFER_TYPE_Title { get; set; }
        [DisplayName("交接方")]
        public string TRANSFER_FROM { get; set; }
        [DisplayName("交接方名称")]
        public string TRANSFER_FROM_NAME { get; set; }

        //[DisplayName("交接营业厅")]
        //public string TransferFromAgent { get; set; }
        //[DisplayName("交接营业厅类别")]
        //public string TransferFromAgentType { get; set; }

        //[DisplayName("交接厂商")]
        //public string TransferFromSupplier { get; set; }
        [DisplayName("接收方")]
        public string TRANSFER_TO { get; set; }
        [DisplayName("接收方名称")]
        public string TRANSFER_TO_NAME { get; set; }
        /// <summary>
        /// 营业厅->维修组，维修组->厂商，存放来源营业厅类别
        /// 厂商->维修组，维修组->厂商，存放目的营业厅类别
        /// </summary>
        [DisplayName("营业厅类别")]
        public string AGENT_TYPE_NO { get; set; }
        //[DisplayName("接收营业厅")]
        //public string TransferToAgent { get; set; }


        //[DisplayName("接收营业厅类别")]
        //public string TransferToAgentType { get; set; }

        //[DisplayName("接收厂商")]
        //public string TransferToSupplier { get; set; }
        [DisplayName("交接单状态")]
        public int STATUS { get; set; }
        [DisplayName("交接单状态")]
        public string STATUS_title { get; set; }
        [DisplayName("创建人")]
        public string CREATED_BY { get; set; }
        [DisplayName("创建时间")]
        public System.DateTime CREATED_DATE { get; set; }
        [DisplayName("修改人")]
        public string MODIFY_BY { get; set; }
        [DisplayName("修改时间")]
        public System.DateTime MODIFY_DATE { get; set; }
        [DisplayName("营业厅")]
        public string Agent { get; set; }
        [DisplayName("营业厅")]
        public string Agent_Title { get; set; }

        [DisplayName("营业厅类别")]
        public string Agent_Type { get; set; }

        [DisplayName("厂商")]
        public string Supplier { get; set; }
        [DisplayName("厂商")]
        public string Supplier_Title { get; set; }

        [DisplayName("确认交接单")]
        public string ConfirmCommandTitle
        {
            get
            {
                string temp = "";
                if ((TRANSFER_TYPE == (int)TransferType.AgentToRepairCenter) || (TRANSFER_TYPE == (int)TransferType.RepairCenterToAgent))
                {
                    if (STATUS == (int)TransferStatus.Normal)
                        temp = "确认接收";
                }
                return temp;
            }
        }
        /// <summary>
        /// 确认接收是否显示
        /// </summary>
        public string ConfirmVisable
        {
            get
            {
                return mConfirmVisable;
            }
        }

        private string mConfirmVisable;

        public void setConfirmShowTime(string v)
        {
            mConfirmVisable = v;
        }
        /// <summary>
        ///作废是否显示(维修组不能作废 营业厅->维修组 维修组只能作废营业厅->维修组(未确认接收的))
        /// </summary>
        public string deleteShow
        {
            get
            {
                return mDeleteVisable;
            }
        }
        private string mDeleteVisable;

        public void setDeleteVisable(string v)
        {
            mDeleteVisable = v;
        }
    }
}
